#程序版本
VERSION  = 2023.07.25
#程序图标
#RC_ICONS = main.ico
#产品名称
QMAKE_TARGET_PRODUCT = DemoMainWidget
#版权所有
QMAKE_TARGET_COPYRIGHT = Smile
#文件说明
QMAKE_TARGET_DESCRIPTION = QT使用例程

# 添加自定义变量
DEFINES += NAME=Smile
DEFINES += WPI=3.24
DEFINES += TARGETNAME=$$QMAKE_TARGET_COPYRIGHT
DEFINES += WVERSION=$$VERSION

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# 项目配置
TARGET      = $$QMAKE_TARGET_PRODUCT          # 生成目标的名字
TEMPLATE    = app           # 生成应用的类型  app、lib
DESTDIR     = $$PWD/../../bin  # 生成目标的路径
CONFIG      += warn_off     # 告诉qmake应用程序的配置信息
CONFIG      += c++11

DEFINES += QT_DEPRECATED_WARNINGS


SOURCES += \
    demo.cpp \
    main.cpp \
    widget.cpp

HEADERS += \
    demo.h \
    widget.h

FORMS += \
    widget.ui

DISTFILES += \
    Readme.md


# 默认部署规则
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# ------安卓系统------
android{
message(OS Android)

}

# ------Windows系统------
win32{
message(OS Windows)

}

# ------Linux系统------
unix:!macx:!android{
message(OS Linux)

}

